<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 4.2.1">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"emoh.xyz","root":"/","scheme":"Gemini","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
  </script>

  <meta name="description" content="hmc命令 asmmenu 打开受管主机asmm网页。示列：  1asmmenu --ip   bkconsdata 备份硬件控制台HMC重要数据  示列： 123bkconsdata -r ftp -h ftpserver -u ftpuser --passwd ftppasswordbkconsdata -r nfs -h 9.3.145.52 -l &#x2F;home&#x2F;hmc&#x2F;backupsbkco">
<meta property="og:type" content="article">
<meta property="og:title" content="HMC命令整理">
<meta property="og:url" content="http://emoh.xyz/2020/05/29/2020-05-29-HMC%E5%91%BD%E4%BB%A4%E6%95%B4%E7%90%86/index.html">
<meta property="og:site_name" content="Just do it!">
<meta property="og:description" content="hmc命令 asmmenu 打开受管主机asmm网页。示列：  1asmmenu --ip   bkconsdata 备份硬件控制台HMC重要数据  示列： 123bkconsdata -r ftp -h ftpserver -u ftpuser --passwd ftppasswordbkconsdata -r nfs -h 9.3.145.52 -l &#x2F;home&#x2F;hmc&#x2F;backupsbkco">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2020-05-29T01:07:58.000Z">
<meta property="article:modified_time" content="2020-05-29T01:09:57.953Z">
<meta property="article:author" content="Emoh">
<meta property="article:tag" content="aix">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="http://emoh.xyz/2020/05/29/2020-05-29-HMC%E5%91%BD%E4%BB%A4%E6%95%B4%E7%90%86/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>HMC命令整理 | Just do it!</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">Just do it!</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>

  </li>
        <li class="menu-item menu-item-about">

    <a href="/about/" rel="section"><i class="fa fa-user fa-fw"></i>关于</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a>

  </li>
  </ul>
</nav>




</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="http://emoh.xyz/2020/05/29/2020-05-29-HMC%E5%91%BD%E4%BB%A4%E6%95%B4%E7%90%86/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/touxiang.png">
      <meta itemprop="name" content="Emoh">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Just do it!">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          HMC命令整理
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>
              

              <time title="创建时间：2020-05-29 09:07:58 / 修改时间：09:09:57" itemprop="dateCreated datePublished" datetime="2020-05-29T09:07:58+08:00">2020-05-29</time>
            </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-folder"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/aix/" itemprop="url" rel="index"><span itemprop="name">aix</span></a>
                </span>
            </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <h1 id="hmc命令"><a href="#hmc命令" class="headerlink" title="hmc命令"></a>hmc命令</h1><ul>
<li>asmmenu 打开受管主机asmm网页。<br>示列：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">asmmenu --ip</span><br></pre></td></tr></table></figure>

<ul>
<li>bkconsdata 备份硬件控制台HMC重要数据</li>
</ul>
<p>示列：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">bkconsdata -r ftp -h ftpserver -u ftpuser --passwd ftppassword</span><br><span class="line">bkconsdata -r nfs -h 9.3.145.52 -l /home/hmc/backups</span><br><span class="line">bkconsdata -r dvd</span><br></pre></td></tr></table></figure>

<ul>
<li>bkprofdata 将受管系统的概要文件数据备份到文件中。</li>
</ul>
<p>示例：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">bkprofdata -m mySystem -f /mnt/floppy/myFile</span><br><span class="line">bkprofdata -m 9406-570*341344 -f backup1</span><br></pre></td></tr></table></figure>



<a id="more"></a>

<ul>
<li>chaccfg 更改访问控制角色的定义。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">chaccfg -t resourcerole -i <span class="string">"name=lpar_role,resources=XXX"</span></span><br><span class="line">chaccfg -t resourcerole -i <span class="string">"name=mr1,resources+=XXX"</span></span><br><span class="line">chaccfg -t taskrole -i <span class="string">"name=tr1,"</span>resources=cec:chhwres+chsysstate,lpar:chhwres+chled+chsyscfg<span class="string">""</span></span><br><span class="line">chaccfg -t taskrole -f /tmp/cfgFile</span><br></pre></td></tr></table></figure>

<ul>
<li>chcod 对受管系统执行容量随需应变（CoD）操作。</li>
</ul>
<p>示例：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">chcod -m sys1 -o e -k AlphaNumericString12345</span><br><span class="line">chcod -m 9406-570*1001CA -o a -c onoff -r mem -q 2048 -d 10</span><br><span class="line">chcod -m 9406-570*1001CA -o a -c onoff -r mem -q 5120 -d 3</span><br><span class="line">chcod -m sys1 -o a -c onoff -r proc -q 4 -d 5</span><br><span class="line">chcod -m sys1 -o a -c onoff -r proc -q 1 -d 5</span><br><span class="line">chcod -m 9406-570*1001CA -o a -c reserver -r proc -q 3</span><br><span class="line">chcod -m sys1 -o a -c reserve -r proc -q 1</span><br><span class="line">chcod -m sys1 -o d -c onoff -r proc</span><br><span class="line">chcod -m sys1 -o d -c reserver -r proc</span><br><span class="line">chcod -m 9406-570*1001CA -o d -c trial -r mem</span><br></pre></td></tr></table></figure>

<ul>
<li>chhmc 修改硬件管理控制台（HMC）设置。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line">chhmc -c network -s modify -h mynewhost</span><br><span class="line">chhmc -c network -s modify -i eth0 -a 10.10.10.1 -nm 255.255.255.0</span><br><span class="line">chhmc -c ssh -s <span class="built_in">enable</span></span><br><span class="line">chhmc -c http -s <span class="built_in">disable</span></span><br><span class="line">chhmc -c websm -s <span class="built_in">enable</span></span><br><span class="line">chmc -c syslog -s add -a 10.10.10.2</span><br><span class="line">chhmc -c kbdcfg -s <span class="built_in">enable</span></span><br><span class="line">chhmc -c ssh -s add -a 10.10.10.3 -nm 255.255.255.255 -i eth0</span><br><span class="line">chhmc -c http -s add -a 10.10.10.0 -nm 255.255.255.0 -i eth1</span><br><span class="line">chhmc -c websm -s add -a 10.10.10.3 -nm 255.255.255.255</span><br><span class="line">chhmc -c xntp -s add mytimeserver.company.com</span><br><span class="line">chhmc -c xntp -s add -a 10.10.10.32 -i eth0</span><br><span class="line">chhmc -c xntp -s remove mytimeserver.company.com</span><br><span class="line">chhmc -c locale -s modify -l es_ES</span><br><span class="line">chhmc -c netboot -s <span class="built_in">enable</span></span><br></pre></td></tr></table></figure>

<ul>
<li>chhmcusr 更改硬件管理控制台（HMC）用户的属性。<br>示列：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">chhmcusr -u hmcuser1 -t assign -o a -r resourcerole -v lpar_role</span><br><span class="line">chhmcusr -u tester -t passwd</span><br><span class="line">chhmcusr -u hmcuser1 -t pwage -v 180</span><br><span class="line">chhmcusr -u tester -t taskrole -v hmccoperator</span><br></pre></td></tr></table></figure>

<ul>
<li>chhwres 更改被处理的系统的硬件资源配置。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line">chhwres -r io -m sys1 -o a -p p1 -l 21010001 -a <span class="string">"slot_io_pool_id=3"</span></span><br><span class="line">chhwres -r io --rsubtype iopool -m 9406-520*1234321A -o s -p p1 -a <span class="string">""</span>lpar_io_pool_ids+=2,3<span class="string">""</span></span><br><span class="line">chhwres -r virtualio -m 9406-520*1234321A -o a --id 3 --rsubtype eth -a <span class="string">"ieee_virtual_eth=1,port_vlan_id=4"</span>addl_vlan_ids=5,6<span class="string">",is_trunk=1,trunk_priority=1"</span></span><br><span class="line">chhwres -r virtualio -m sys1 -o r -p p1 -s 3</span><br><span class="line">chhwres -r virtualio -m sys1 -o s -p i5_p1 --rsubtype hsl -a <span class="string">"hsl_pool_id=1"</span></span><br><span class="line">chhwres -r mem -m sys1 -o a --id 1 -q 128 -w 10</span><br><span class="line">chhwres -r mem -m 9406-520*1234321A -o r -p aix_p1 -q 512 -d 5 --force</span><br><span class="line">chhwres -r mem -m sys1 -o s -a <span class="string">"requested_num_sys_huge_pages=2"</span></span><br><span class="line">chhwres -r proc -m 9406-520*1234321A -o m -p p1 -t p2 --procs 1</span><br><span class="line">chhwres -r proc -m sys1 -o m --id 1 --tid2 --procunits.5</span><br><span class="line">chhwres -r proc -m sys1 -o a p i5_p1 --procunits.25 --5250cpwpercent 10</span><br></pre></td></tr></table></figure>

<ul>
<li>chled 更改受管系统上的 LED 的状态。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">chled -m 9406-570*100103C -r sa -t phys -o off</span><br><span class="line">chled -m system1 -r sa -t virtuallpar -o on -p lpar3</span><br><span class="line">chled -m system1 -r sa -t virtuallpar -o off --id 3</span><br></pre></td></tr></table></figure>

<ul>
<li>chlparutil<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">chlparutil -r config -s 3600</span><br><span class="line">chlparutil -r config -s 3600 -m mySystem</span><br><span class="line">chlparutil -r config -s 0 -m 9406-520*98765432</span><br></pre></td></tr></table></figure>

<ul>
<li>chsacfg 修改 Service Agent 设置。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">chsacfg -t email -o <span class="built_in">enable</span></span><br><span class="line">chsacfg -t email -o setsmtp -h mycompany.com -p 30</span><br><span class="line">chsacfg -t email -o add -a addr1@mycompany.com --events callhome</span><br><span class="line">chsacfg -t email -o <span class="built_in">test</span> -a all</span><br><span class="line">chsacfg -t ftpoffload -o <span class="built_in">enable</span> -h ftphost -u ftpuser --passwd userpwd</span><br><span class="line">chsacfg -t ftpfirewall -o add -n excludedhost</span><br><span class="line">chsacfg -t ftpfirewall --fwtype 0</span><br></pre></td></tr></table></figure>

<ul>
<li>chsvcevent 更新 HMC 上的可维护事件。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">chsvcevent -p 1048 -h 7315-C02/KLRMT0L -o close</span><br></pre></td></tr></table></figure>

<ul>
<li>chsyscfg 更改分区、分区概要文件、系统概要文件或受管系统或受管机架的属性<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">chsyscfg -r sys -m 9406-570*89320051 -i <span class="string">"new_name=sys1,power_off_policy=1"</span></span><br><span class="line">chsyscfg -r lpar -m sys1 -f /tmp/lparfile</span><br><span class="line">chsyscfg -r prof f -m sys1 -i <span class="string">"name=profile1,lpar_name=partition3,min_mem-=256,desired_mem-=256max_mem-=256,esired_procs=2"</span></span><br><span class="line">chsyscfg -r sysprof -m sys1 -i <span class="string">"name=sysprof1,"</span>lpar_names+=partition3,partition4<span class="string">","</span>profile_names+3_prof1,_defaultProf<span class="string">""</span></span><br><span class="line">chsyscfg -r frame -e 9119-59*1234567 -i <span class="string">"new_name=frame1,frame_num=1"</span></span><br></pre></td></tr></table></figure>

<ul>
<li>chsyspwd 更改受管系统或受管机架的密码。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">chsyspwd -m system1 -t access --passwd sys1pw --newpasswd sys1newpw</span><br><span class="line">chsyspwd -m 9406-520*10013CA -t admin</span><br><span class="line">chsyspwd -e frame1 -t access --passwd frame1pw --newpasswd frame1newpw</span><br></pre></td></tr></table></figure>

<ul>
<li>chsystate 更改分割，一个被处理的系统的状态 , 或一个被处理的架框。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><span class="line">chsysstate -m 9406-520*10110CA -r sys -o on</span><br><span class="line">chsysstate -m sys1 -r sys -o onsysprof -f mySysProf</span><br><span class="line">chsysstate -m sys1 -r sys -o off</span><br><span class="line">chsysstate -m sys1 -r sys -o off --immed</span><br><span class="line">chsysstate -m 9406-570*12345678 -r sys -o off --immed --restart</span><br><span class="line">chsysstate -m 9406-570*12345678 -r sys -o rebuild</span><br><span class="line">chsysstate -m sys1 -r sys -o recover</span><br><span class="line">chsysstate -m myServer -r sys -o spfailover</span><br><span class="line">chsysstate -m sys1 -r sys -o chkey -k manual</span><br><span class="line">chsysstate -m sys1 -r lpar -o on -n p1 -f p1_prof1 -i b</span><br><span class="line">chsysstate -m 9406-570*12345678 -r lpar -o shutdown --id 1</span><br><span class="line">chsysstate -m 9406-570*12345678 -r lpar -o osshutdown -n p1 --immed</span><br><span class="line">chsysstate -m 9406-570*12345678 -r lpar -o shutdown --id 1 --immed --restart</span><br><span class="line">chsysstate -m sys1 -r lpar -o remotedston -n mylpar</span><br><span class="line">chsysstate -m sys1 -r sysprof -n sp1 --<span class="built_in">test</span></span><br><span class="line">chsysstate -m sys1 -r sysprof -n sp1 -o on --<span class="built_in">test</span></span><br><span class="line">chsysstate -m 9406-570*12345678 -r sysprof -n mySysProf -o on --<span class="built_in">continue</span></span><br><span class="line">chsysstate -e myFrame -r frame -o rebuild</span><br></pre></td></tr></table></figure>

<ul>
<li>chusrtca<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">chusrtca -o e</span><br><span class="line">chusrtca -o e -f /home/hscroot/UserLicense.html</span><br><span class="line">chusrtca -o a -f /tmp/UserLicense.html -l en</span><br><span class="line">mount /mnt/floppy</span><br><span class="line">chusrtca -o a -f /mnt/floppy/UserLicense.html -l fr</span><br><span class="line">scp someID@someHost:/tmp/UserLicense.html /tmp</span><br><span class="line">chusrtca -o a -f /tmp/UserLicense.html -c</span><br><span class="line">scp someID@someHost:/tmp/BannerFile.txt /tmp</span><br><span class="line">chusrtca -o ab -b /tmp/BannerFile.txt -c</span><br></pre></td></tr></table></figure>

<ul>
<li>chvet 在受管系统上执行虚拟化引擎系统技术的激活。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">chvet -m mySystem -o e -k AlphaNumericString12345</span><br></pre></td></tr></table></figure>

<ul>
<li>cpdump 将转储从硬件管理控制台（HMC）复制到 DVD 或远程 FTP 站点。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">cpdump -r dvd -f <span class="string">"FSPDUMP.100072A.01000019.20040629205455 SYSDUMP.100072A.01000019.20040630183112"</span></span><br><span class="line">cpdump -r ftp -f <span class="string">"FSPDUMP.100072A.01000019.20040629205455"</span> -h ftpserver -u ftpuser --passwd ftppassword -d /tmp/dumpfiles/</span><br></pre></td></tr></table></figure>

<ul>
<li>cpsysplan<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">cpsysplan -r ftp -f sysplan.sysplan -o <span class="built_in">export</span> -h ftpserver -u ftpuser --passwd ftppassword</span><br><span class="line">cpsysplan -r ftp -f sysplan.sysplan -o <span class="built_in">export</span> -h 9.3.145.52 -d /home/user/systemplans</span><br><span class="line">cpsysplan -r ftp -f sysplan.sysplan -o import -h ftpserver -p 9922 -u ftpuser --passwd ftppassword</span><br><span class="line">cpsysplan -r media -f sysplan.sysplan -o import -d /mnt/cdrom --check</span><br><span class="line">cpsysplan -r media -f sysplan.sysplan -o <span class="built_in">export</span> -d /media/sda1</span><br></pre></td></tr></table></figure>

<ul>
<li>deploysysplan<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">deploysysplan -f mysysplan.sysplan -o dv</span><br><span class="line">deploysysplan -f mysysplan.sysplan -o dv -m mySystem --force</span><br><span class="line">deploysysplan -f mysysplan.sysplan -o dv -m 9406-570*34134888 -v</span><br><span class="line">deploysysplan -f multisysplan.sysplan -o v -m mySystem --plan3</span><br><span class="line">deploysysplan -f mysysplan.sysplan -o v -m mySystem -v</span><br><span class="line">deploysysplan -f mysysplan.sysplan -o d -m mySystem -v --force</span><br></pre></td></tr></table></figure>

<ul>
<li>dlslic<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">dlslic -m mysystem</span><br><span class="line">dlslic -e 9458-100*02AB33C</span><br></pre></td></tr></table></figure>

<ul>
<li>getdump 来自一个被处理的系统或一个被处理的架框的取回一个倾销。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">getdump -m sys1 -t sys</span><br><span class="line">getdump -m 9117-570*12345678 -t sp -s s</span><br><span class="line">getdump -e 9119-59*000012C -t pss -s b</span><br></pre></td></tr></table></figure>

<ul>
<li>hmcshutdown 关闭硬件管理控制台（HMC）。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">hmcshutdown -t 3 -r</span><br><span class="line">hmcshutdown -t now</span><br></pre></td></tr></table></figure>

<ul>
<li><p>hmcwin<br>示例：</p>
</li>
<li><p>lpar_netboot<br>示例：</p>
</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">lpar_netboot -M -n -t ent <span class="string">"machA"</span> <span class="string">"mach_prof"</span> <span class="string">"test_sys"</span></span><br><span class="line">lpar_netboot -t ent -s auto -d auto -S 9.3.6.49 -G 9.3.6.1 -C 9.3.6.234 <span class="string">"machA"</span> <span class="string">"machA_prof"</span> <span class="string">"test_sys"</span></span><br><span class="line">lpar_netboot -t ent -m 00096bdd02e8 -s auto -d auto -S 9.3.6.49 -G 9.3.6.1 -C 9.3.6.234 <span class="string">"machA"</span> <span class="string">"machA_prof"</span><span class="string">"test_sys"</span></span><br><span class="line">lpar_netboot -t ent -l U1234.121.A123456-P1-T6 -s auto -d auto -S 9.3.6.49 -G 9.3.6.1 -C 9.3.6.234 <span class="string">"machA"</span><span class="string">"machA_prof"</span> <span class="string">"test_sys"</span></span><br><span class="line">lpar_netboot -t ent -D -s auto -d auto -S 9.2.6.49 -G 9.3.6.1 -C 9.3.6.234 <span class="string">"machA"</span> <span class="string">"machA_prof"</span> <span class="string">"test_sys"</span></span><br></pre></td></tr></table></figure>

<ul>
<li>lpcfgop 对受管系统执行分区配置映像操作。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">lpcfgop -m sys1 -o clear</span><br><span class="line">lpcfgop -m 9406-520*100132A -o dump</span><br></pre></td></tr></table></figure>

<ul>
<li>lsaccfg 列出访问控制角色或可用的资源实例。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">lsaccfg -t resource</span><br><span class="line">lsaccfg -t resource --filter <span class="string">"resource_type=lpar"</span></span><br><span class="line">lsaccfg -t resourcerole</span><br><span class="line">lsaccfg -t resourcerole --filter <span class="string">"resourceroles=lpar_role"</span></span><br><span class="line">lsaccfg -t taskrole -F name:parent</span><br><span class="line">lsaccfg -t taskrole --filter <span class="string">""</span>taskroles=tr1,tr2<span class="string">""</span></span><br></pre></td></tr></table></figure>

<ul>
<li>lscod 为一个被处理的系统在需量 (CoD)信息上的列表容量。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">lscod -m sys1 -t bill -r proc -c onoff</span><br><span class="line">lscod -m 9406-570*98127634 -t <span class="built_in">cap</span> -r proc -c cuod</span><br><span class="line">lscod -m 9406-570*98127634 -t <span class="built_in">cap</span> -r mem -c trial</span><br><span class="line">lscod -m sys1 -t <span class="built_in">cap</span> -r proc -c onoff -F unreturned_onoff_procs&lt;p align=<span class="string">"right"</span>&gt;</span><br><span class="line">lscod -m sys1 -t code -r proc -c cuod</span><br><span class="line">lscod -m 9406-570*98127634 -t hist</span><br><span class="line">lscod -m sys1 -t util -r proc</span><br></pre></td></tr></table></figure>

<ul>
<li>lsdump 列出从一个被处理的系统，一个被处理的架框可得的倾销, 或那硬件管理控制台 (HMC)。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">lsdump -m 9406-520*100128A</span><br><span class="line">lsdump -m sys1 -s s</span><br><span class="line">lsdump -e frame1 -s a</span><br><span class="line">lsdump -h</span><br></pre></td></tr></table></figure>

<ul>
<li>lshmc 列出 HMC 设置。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">lshmc -b</span><br><span class="line">lshmc -l</span><br><span class="line">lshmc -L</span><br><span class="line">lshmc -n</span><br><span class="line">lshmc -n -F hostname:ipaddr</span><br><span class="line">lshmc -r</span><br><span class="line">lshmc -v</span><br><span class="line">lshmc -V</span><br></pre></td></tr></table></figure>

<ul>
<li>lshmcusr 列出硬件管理控制台（HMC）用户信息。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">lshmcusr</span><br><span class="line">lshmcusr -F name:resourcerole</span><br><span class="line">lshmcusr --filter <span class="string">""</span>names=hscroot,user1<span class="string">""</span></span><br><span class="line">lshmcusr --filter <span class="string">"taskroles=hmcviewer,resourceroles=mr1"</span></span><br></pre></td></tr></table></figure>

<ul>
<li>lshwinfo 为一个被处理的架框列出环境的信息。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">lshwinfo -r frame -e myFrame</span><br><span class="line">lshwinfo -r sys -e 9119-595*020000A</span><br></pre></td></tr></table></figure>

<ul>
<li>lshwres 列出被处理的系统的硬件资源。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line">lshwres -r io --rsubtype unit -m system1</span><br><span class="line">lshwres -r io --rsubtype bus -m 9406-570*12345678 --filter <span class="string">"units=U787A.001.0395036"</span></span><br><span class="line">lshwres -r io --rsubtype slot -m system1 --filter <span class="string">"units=U787A.001.0395036,"</span>buses=2,3<span class="string">""</span> -F drc_index,description,lpar_name</span><br><span class="line">lshwres -r io --rsubtype iopool -m system1 --level pool</span><br><span class="line">lshwres -r io --rsubtype taggedio -m 9406-520*100103A --filter <span class="string">"lpar_ids=1"</span></span><br><span class="line">lshwres -r virtualio --rsubtype eth --level lpar -m system1</span><br><span class="line">lshwres -r virtualio --rsubtype scsi -m system1 -F --header</span><br><span class="line">lshwres -r virtualio --rsubtype slot -m system1 --level slot --filter <span class="string">"lpar_names=lpar1"</span></span><br><span class="line">lshwres -r mem -m 9406-570*98765432 --level sys</span><br><span class="line">lshwres -r mem -m 9406-570*98765432 --level lpar -R</span><br><span class="line">lshwres -r mem -m system1 --level lpar --filter <span class="string">""</span>lpar_names=lpar_1,lpar2<span class="string">""</span></span><br><span class="line">lshwres -r proc -m 9406-570*98765432 --level sys -F installed_sys_proc_units:configurable_sys_proc_units</span><br><span class="line">lshwres -r proc -m system1 --level lpar</span><br><span class="line">lshwres -r hca -m 9117-570*12345678 --level sys</span><br><span class="line">lshwres -r hca -m 9117-570*12345678 --level lpar --filter <span class="string">"lpar_names=AIX1"</span></span><br><span class="line">lshwres -r sni -m system1</span><br></pre></td></tr></table></figure>

<ul>
<li>lsled 列出受管系统的 LED 信息。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">lsled -m 9406-579*100103C -r sa -t phys</span><br><span class="line">lsled -m system1 -r sa -t virtuallpar</span><br><span class="line">lsled -m system1 -r sa -t virtuallpar --filter <span class="string">""</span>lpar_names=lpar1,lpar2<span class="string">""</span></span><br></pre></td></tr></table></figure>

<ul>
<li>lslic 列表得到许可的内部码 (LIC) 层次安装了, 启动了而且接受了。这一个指令将会可选择地显示可得的是的 LIC 层次从一个指定的资源库取回了。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">lslic -t sys -m mysystem</span><br><span class="line">lslic -t power -m 9406-570*1020304</span><br><span class="line">lslic -t syspower -m mysystem -r ibmwebsite</span><br><span class="line">lslic -t sys -m mysystem -r ftp -h ftphost.domainname -u myuser --passwd mypasswd</span><br><span class="line">lslic -w</span><br><span class="line">lslic -w -r ibmwebsite</span><br></pre></td></tr></table></figure>

<ul>
<li>lslock 在一个被处理的架框上拥有闭锁的列表。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">lslock -e myFrame</span><br></pre></td></tr></table></figure>

<ul>
<li>lslparutil<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">lslparutil -r all -m sys1 --startyear 2005 --endyear 2005 --endmonth 12 --endday 31 --endhour 23 -s m</span><br><span class="line">lslparutil -r sys -m 9406-520*1000101 -d 0 --filter <span class="string">"event_types=sample"</span></span><br><span class="line">lslparutil -r all -m sys1 --startyear 2006 -n 25</span><br><span class="line">lslparutil -r lpar -m sys1 -n 10 --filter <span class="string">"event_types=sample,lpar_names=p1"</span></span><br><span class="line">lslparutil -r all -m sys1 --startyear 2005 --startmonth 6 --endyear 2005 --endmonth6 --endday 30 --endhour 23 --filter <span class="string">""</span>event_types=state_change,config_change<span class="string">""</span></span><br><span class="line">lslparutil -r hmc -m sys1 --startyear 2006 --startmonth2</span><br><span class="line">lslparutil -r config</span><br></pre></td></tr></table></figure>

<ul>
<li>lsmediadev 在这硬件管理上的使用可用的列表储存媒体装置控制台。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">lsmediadev</span><br></pre></td></tr></table></figure>

<ul>
<li>lsrefcode 列出分区或受管系统的参考码条目。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">lsrefcode -r sys -m system1</span><br><span class="line">lsrefcode -r sys -m 9406-570*1543901A -n 10 -F --header</span><br><span class="line">lsrefcode -r sys -m system1 -s s -n 5</span><br><span class="line">lsrefcode -r lpar -m system1 -F lpar_name,time_stamp,refcode</span><br><span class="line">lsrefcode -r lpar -m 9406-520*12345678 -n 25 --filter <span class="string">""</span>lpar_names=p1,p2<span class="string">""</span></span><br></pre></td></tr></table></figure>

<ul>
<li>lssacfg 列出 Service Agent 设置。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">lssacfg -t email</span><br><span class="line">lssacfg -t ftpfirewall</span><br><span class="line">lssacfg -t ftpoffload -F host,directory</span><br></pre></td></tr></table></figure>

<ul>
<li>lssvcevents 列出控制台或维修事件。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">lssvcevents -t hardware -d 0</span><br><span class="line">lssvcevents -t console -d 3</span><br><span class="line">lssvcevents -t hardware -m system1 --filter <span class="string">"status=open"</span></span><br><span class="line">lssvcevents -t hardware -m 9406-570*101234A -d 7 -F problem_num:status</span><br></pre></td></tr></table></figure>

<ul>
<li>lssyscfg 列出分区、分区概要文件、系统概要文件、受管系统信息、受管机架柜仓或受管机架信息。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><span class="line">lssyscfg -r sys</span><br><span class="line">lssyscfg -r sys -F name:type_model:serial_num</span><br><span class="line">lssyscfg -r sys -m system1</span><br><span class="line">lssyscfg -r lpar -m 9406-570*12345678 -F --header</span><br><span class="line">lssyscfg -r lpar -m system1 --filter <span class="string">""</span>lpar_names=lpar1,lpar2,lpar3<span class="string">""</span></span><br><span class="line">lssyscfg -r lpar -m system1 --filter <span class="string">""</span>lpar_names=lpar1,lpar2,lpar3<span class="string">""</span> -F name,lpar_id,state</span><br><span class="line">lssyscfg -r prof -m system1 --filter <span class="string">"lpar_names=lpar2"</span></span><br><span class="line">lssyscfg -r prof -m system1 --filter <span class="string">"lpar_ids=2,"</span>profile_names=prof1,prof2<span class="string">""</span></span><br><span class="line">lssyscfg -r sysprof -m 9406-520*100128A</span><br><span class="line">lssyscfg -r sysprof -m system1 --filter <span class="string">"profile_names=sysprof1"</span></span><br><span class="line">lssyscfg -r frame</span><br><span class="line">lssyscfg -r frame -e myFrame</span><br><span class="line">lssyscfg -r cage -e 9119-59*000012C</span><br></pre></td></tr></table></figure>

<ul>
<li>lssysconn 为系统和被这一个硬件处理的架框的列表连接信息管理。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">lssysconn -r all</span><br><span class="line">lssysconn -r all -F ipaddr:state</span><br></pre></td></tr></table></figure>

<ul>
<li>lssysplan<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">lssysplan</span><br><span class="line">lssysplan -F --header</span><br><span class="line">lssysplan -F name,date,description</span><br><span class="line">lssysplan -F name,description --header</span><br></pre></td></tr></table></figure>

<ul>
<li><p>lsusrtca 显示在登录时提示用户协议的当前状态。<br>示例：</p>
</li>
<li><p>lsvet 列出受管系统的虚拟化引擎系统技术的信息。<br>示例：</p>
</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">lsvet -m sys1 -t code</span><br><span class="line">lsvet -m 9117-579*1001213 -t hist</span><br></pre></td></tr></table></figure>

<ul>
<li>migrcfg 移动对一个被处理的系统分割配置数据。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">migrcfg -m mySystem -t 1 -f cfgFile</span><br></pre></td></tr></table></figure>

<ul>
<li>mkaccfg 创建新的访问控制角色。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">mkaccfg -t resourcerole -f /tmp/mr1file</span><br><span class="line">mkaccfg -t taskrole -i <span class="string">"name=tr1,parent=hmcsuperadmin,"</span>resources=cec:chcod+lscod+lshwres,lpar:chsyscfg+lssyscfg+mksyscfg<span class="string">""</span></span><br></pre></td></tr></table></figure>

<ul>
<li>mkhmcusr 创建硬件管理控制台（HMC）用户。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">mkhmcusr -u sysadmin -a hmcsuperadmin --passwd aielkw3j -M 180 -d <span class="string">"System Administrator"</span></span><br><span class="line">mkhmcusr -u myhmcuser -a hmcviewer</span><br></pre></td></tr></table></figure>

<ul>
<li>mksyscfg 为受管系统创建分区、分区概要文件或系统概要文件。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"> mksyscfg -r lpar -m system1 -i <span class="string">"name=aix_lpar2,profile_name=prof1,lpar_env=aixlinux,min_mem=256,desired_mem=1024,max_mem=1024,proc_mode=ded,min_procs=1,desired_procs=1,max_procs=2,sharing_mode=share_idle_procs,auto_start=1,boot_mode=norm,lpar_io_pool_ids=3,"</span>io_slots=21010003/3/1,21030003//0<span class="string">""</span></span><br><span class="line">mksyscfg -r prof -m 9406-570*34134441 -i <span class="string">"name=prof2,lpar_id=3,min_mem=512,desired_mem=512,max_mem=1024,proc_mode=shared,min_procs=1,desired_procs=1,max_procs=2,min_proc_units=0.1,desired_proc_units=0.5,max_proc_units=1.5,sharing_mode=uncap,uncap_weight=128,auto_start=1,"</span>lpar_io_pool_ids=1,2<span class="string">","</span>io_slots=2101001B/1/1,2103001B/2/1,2105001B//0<span class="string">",load_source_slot=2101001B,console_slot=hmc,max_virtual_slots=4,"</span>virtual_scsi_adapters=2/client/2/3/1,3/server////1<span class="string">""</span></span><br><span class="line">mksyscfg -r prof -m system1 -f /tmp/profcfg</span><br><span class="line">mksyscfg -r prof -m system1 -o save -p p1 -n newProfile</span><br><span class="line">mksyscfg -r sysprof -m system1 -i <span class="string">"name=sysprof1,"</span>lpar_names=lpar1,lpar2<span class="string">","</span>profile_names=prof1,prof1<span class="string">""</span></span><br></pre></td></tr></table></figure>

<ul>
<li>mksysconn 建立从硬件管理控制台（HMC）到网络中某个系统或机架的连接，并将该系统或机架添加到 HMC。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">mksysconn --ip sys1.company.com --passwd sys1pw</span><br><span class="line">mksysconn --ip 9.3.152.145</span><br><span class="line">mksysconn --ip frame1_A.company.com -r frame --passwd frame1pw</span><br><span class="line">mksysconn --ip frame1_B.company.com -r frame --passwd frame1pw</span><br></pre></td></tr></table></figure>

<ul>
<li>mksysplan<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">mksysplan -f sysplan.sysplan -m mySystem</span><br><span class="line"> mksysplan -f sysplan.sysplan -m 9406-570*3413556 -d <span class="string">"New 570 system plan for 11/4/05"</span></span><br></pre></td></tr></table></figure>

<ul>
<li>mkvterm 打开受管系统中 AIX、Linux 或虚拟 I/O 服务器分区的虚拟终端会话。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">mkvterm -m mySystem -p p1</span><br><span class="line">mkvterm -m 9406-570*12345678 --id 1</span><br></pre></td></tr></table></figure>

<ul>
<li>pedbg<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">pedbg -d on</span><br><span class="line">pedbg -d off</span><br></pre></td></tr></table></figure>

<ul>
<li>pesh<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">lshmc -v</span><br></pre></td></tr></table></figure>

<ul>
<li>rmaccfg 除去访问控制角色，或清除分配给硬件管理控制台（HMC）用户的不活动资源实例。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">rmaccfg -t resourcerole -n lpar_role</span><br><span class="line">rmaccfg -t resource -n superuser</span><br></pre></td></tr></table></figure>

<ul>
<li>rmhmcusr 除去硬件管理控制台（HMC）用户。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">rmhmcusr -u tester</span><br></pre></td></tr></table></figure>

<ul>
<li>rmlock 在一个被处理的架框上强迫一个硬件管理控制台 (HMC) 闭锁是发表。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">rmlock -e myFrame</span><br></pre></td></tr></table></figure>

<ul>
<li>rmlparutil<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">rmlparutil -m mySystem</span><br><span class="line">rmlparutil -m 9406-520*98765432</span><br></pre></td></tr></table></figure>

<ul>
<li>rmsyscfg 从受管系统中除去分区、分区概要文件或系统概要文件。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">rmsyscfg -r lpar -m system1 -n partition5</span><br><span class="line">rmsyscfg -r lpar -m system1 -id 5</span><br><span class="line">rmsyscfg -r prof -m system1 -n prof1 -p lpar3</span><br><span class="line">rmsyscfg -r sysprof -m 9406-520*34134441 -n sysprof1</span><br></pre></td></tr></table></figure>

<ul>
<li>rmsysconn 除去或复位从硬件管理控制台（HMC）到受管系统或受管机架的连接。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">rmsysconn -o remove -m mySys</span><br><span class="line">rmsysconn -o reset --ip 9.3.151.145</span><br><span class="line">rmsysconn -o remove -e myFrame</span><br><span class="line">rmsysconn -o reset --ip 9.3.152.29</span><br></pre></td></tr></table></figure>

<ul>
<li>rmsysplan<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">rmsysplan -f sysplan.sysplan</span><br></pre></td></tr></table></figure>

<ul>
<li>rmvterm 关闭受管系统中 AIX、Linux 或虚拟 I/O 服务器分区的虚拟终端会话。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">rmvterm -m mySystem -p p1</span><br><span class="line">rmvterm -m 9406-570*12345678 --id 1</span><br></pre></td></tr></table></figure>

<ul>
<li>rsthwres 在动态逻辑分区（DLPAR）操作失败后复原受管系统的硬件资源配置。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">rsthwres -r io -m mySystem</span><br><span class="line">rsthwres -r io -m 9406-570*12345678 -l 21010003</span><br><span class="line">rsthwres -r mem -m 9406-570*12345678 -p p1</span><br><span class="line">rsthwres -r proc -m mySystem --id 1</span><br></pre></td></tr></table></figure>

<ul>
<li>rstprofdata 从备份文件中复原受管系统的概要文件数据。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">rstprofdata -m mySystem -l 1 -f /mnt/floppy/myFile</span><br><span class="line">rstprofdata -m 9406-570*3413444 -l 3 -f backup1</span><br><span class="line">rstprofdata -m 9406-570*3413444 -l 4</span><br></pre></td></tr></table></figure>

<ul>
<li>sendfile<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">ssh-keygen -t rsa -f mykey</span><br><span class="line">scp mykey me@myhost:/home/me/.ssh/authorized_keys2</span><br><span class="line">sendfile -f /home/me/myfile -h myhost@company.com -d /tmp -s -k mykey</span><br></pre></td></tr></table></figure>

<ul>
<li>startdump 让一个倾销从在一个被处理的系统或一个被处理的架框上开始。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">startdump -m 9406-570*12345678 -t sys</span><br><span class="line">startdump -m sys1 -t sp -s p</span><br><span class="line">startdump -e myFrame -t pss -s a</span><br></pre></td></tr></table></figure>

<ul>
<li>updhmc<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">updhmc -t m -r</span><br><span class="line">updhmc -t s -h hostname -u user1 -p password -f /tmp/Update1.zip</span><br><span class="line">updhmc -t s -h hostname -u user1 -i -f /tmp/Update1.zip</span><br></pre></td></tr></table></figure>

<ul>
<li>updlic 更新许可了内部的码 (LIC) 。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">updlic -m 9406-570*101234A -o a -t sys -l latest -r ibmretain</span><br><span class="line">updlic -m mysystem -o i -t syspower -l 22,21 -r ftp -h ftphost -u ftpuser --passwd userpw</span><br><span class="line">updlic -m 9406-570*101234A -o r -t syspower</span><br><span class="line">updlic -m 9406-570*101234A -o a -t all -l latest -r ibmwebsite -q</span><br><span class="line">updlic -m mysystem -o h</span><br><span class="line">updlic -m mysystem -o o</span><br><span class="line">updlic -m mysystem -o d</span><br><span class="line">updlic -m mysystem -o c</span><br><span class="line">updlic -w -o a -l latest -r ibmretain</span><br><span class="line">updlic -w -o i -l latestconcurrent -r ftp -h ftphost -u ftpuser --passwd userpw</span><br></pre></td></tr></table></figure>

<ul>
<li>viosvrcmd 向虚拟 I/O 服务器分区发出一条命令。<br>示例：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">viosvrcmd -m mySystem -p vios_lpar -c <span class="string">"ioslevel"</span></span><br><span class="line">viosvrcmd -m 9406-570*A0001234 --id 4 -c <span class="string">"lsdev -virtual"</span></span><br></pre></td></tr></table></figure>
    </div>

    
    
    

      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/aix/" rel="tag"># aix</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2020/05/28/2020-05-28-python%E8%B5%84%E6%BA%90%E5%92%8C%E5%89%8D%E6%99%AF/" rel="prev" title="python资源和前景">
      <i class="fa fa-chevron-left"></i> python资源和前景
    </a></div>
      <div class="post-nav-item">
    <a href="/2020/05/29/2020-05-29-awk%E5%92%8Cash/" rel="next" title="awk和ash">
      awk和ash <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#hmc命令"><span class="nav-number">1.</span> <span class="nav-text">hmc命令</span></a></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="Emoh"
      src="/images/touxiang.png">
  <p class="site-author-name" itemprop="name">Emoh</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">29</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">16</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">23</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2020</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Emoh</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Gemini</a> 强力驱动
  </div>

        








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/pisces.js"></script>


<script src="/js/next-boot.js"></script>




  















  

  

</body>
</html>
